import request from '@/sheep/request';

export default {
	biographicals: (data) =>
		request({
			url: 'api/vitae/bio',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	experiencedel: (data) =>
		request({
			url: 'api/vitae_work/del',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	curriculumdel: (data) =>
		request({
			url: 'api/vitae_education/del',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	information: (data) =>
		request({
			url: 'api/vitae/basicUpdate',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	intended: (data) =>
		request({
			url: 'api/vitae_work/add',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	experience: (data) =>
		request({
			url: 'api/vitae_work/del',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	curriculumadd: (data) =>
		request({
			url: 'api/vitae_education/add',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	curriculum: (data) =>
		request({
			url: 'api/vitae_education/edit',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	// 发起提现 
	withdraw: {
		list: (params) =>
			request({
				url: 'withdraw',
				method: 'GET',
				params,
				custom: {
					auth: true,
				},
			}),
	},
};